package com.czk.model.strategy.resolvefile;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/10/27 21:45
 */
@RequestMapping("/file")
@RestController
public class FileController {
    @Resource
    private ResolveFile resolveFile;

    @GetMapping("/{type}")
    public String resolve(@PathVariable("type") String type) {
        resolveFile.resolve(type);
        return "解析成功";
    }
}
